﻿<?php session_start(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<?php
$msg = "";
if (isset($_POST["txtPassword"])) {
if ($_POST["txtPassword"] == "sh0p") {
$_SESSION["admin"] = "true";
header("Location: main.php");
exit();
} else {
$msg = "invalid password";
}//end of checking password value
}//end of checking form submission
?>
    <title>bzShopping Admin login</title>
<link type="text/css" rel="stylesheet" href="../styles.css" />
</head>
<body>
<iframe name="logoFrame" id="logoFrame" src="../logo.htm" border="0" height="120" align="top" frameborder="0" marginheight="0" width="100%" scrolling="no">
<a href="http://www.blindza.co.za/" target="_blank">
<img src="../logo/blindza_logo_smaller46.jpg" alt="blindZA.co.za logo - white text on black background, with white border - and red braille version hovering in front of normal text" width="317" height="103" border="0" />
</a>
</iframe>
<h2>bzShopping Admin login</h2>
<?php
if ($msg != "") {
echo "<p class='error'>" . $msg . "</p>\n";
}
?>
<form action="index.php" method="post" enctype="multipart/form-data">
<table align="center" border="0">
<tr>
<th align="right">Password:</th>
<td>
<input type="password" name="txtPassword" />
</td>
</tr>
<tr>
<th align="center" colspan="2">
<input type="submit" name="btnLogin" value="Login" />
</th>
</tr>
</table>
</form>
</body>
</html>
